<?php

class Module
{
	public $Name;
	public $Path;
	public $Classes = array( );
	public function __construct( $Name, $Path )
	{
		$this->Name = $Name;
		$this->Path = $Path;
	}
	public function Activate( )
	{
		App::$Current->Modules[$this->Name] = $this;
	}
	public function Load( $Class )
	{
		if( isset( $this->Classes[$Class]) )
		{
			require_once implode( '/', array( $this->Path, $this->Classes[$Class] ) );
			return true;
		}
		return false;
	}
}